package com.kdyzm.code.backup;

import com.kdyzm.code.backup.config.Config;
import com.kdyzm.code.backup.service.GitlabService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author kdyzm
 * @date 2023/9/19
 */
@Slf4j
public class Main {


    public static void main(String[] args) {
        log.info("运行模式：{}", Main.class.getResource("").getProtocol());

        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
        ctx.register(Config.class);
        ctx.refresh();

        GitlabService bean = ctx.getBean(GitlabService.class);
        
        bean.startClone();
    }
}
